<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="utf-8">
  <meta name="Author" content="Jenny.Zhan">
  <meta content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" name="viewport" id="viewport" />
  <meta name="format-detection" content="telephone=no" />
  <title>会员中心</title>
  <link rel="stylesheet" href="<{$ipath}>minisite/hotel/css/base.css">
  <link rel="stylesheet" href="<{$ipath}>minisite/hotel/css/layout.css">
  <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  <script>
  wx.config({
		debug: false,
		appId: '<{$jsdata.appid}>',
		timestamp: '<{$jsdata.timestamp}>',
		nonceStr: '<{$jsdata.noncestr}>',
		signature: '<{$jsdata.signature}>',
		jsApiList: ['chooseImage','uploadImage','getLocation','startSearchBeacons','hideOptionMenu','hideMenuItems','scanQRCode']
	});
	function showcamera(){
		wx.scanQRCode({
			needResult: 0, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
			scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
		});
	}
  </script>
</head>
<body>
<div id="main">
	<header id="header" class="ulinenone">
		<div class="back" onclick="location.href='?hid=<{$hid}>'"></div>
		<div class="title">会员中心</div>
	</header>
	<div class="login-box oh tc">
		<span class="home-pic tc"><img src="<{$uinfo.uface}>"></span>
		<span class="home-name db"><{$uinfo.nickname}></span>
		<span class="home-tel db"><{$uinfo.mob}></span>
	</div>
	<div class="page-card">
		<ul class="home-list oh">
			<li><a href="?a=myorderlist&hid=<{$hid}>">
				<i class="i-order"><img src="<{$ipath}>minisite/hotel/img/ico_order_1.png"></i>
				<span class="li-txt">我的订单</span></a>
			</li>
			<li id="wxscan" onClick="showcamera()">
				<i class="i-scan"><img src="<{$ipath}>minisite/hotel/img/ico_order_4.png"></i>
				<span class="li-txt">扫一扫</span>
			</li>
		</ul>
		<ul class="home-list oh">
			<li><a href="?a=myinfo&hid=<{$hid}>">
				<i class="i-info"><img src="<{$ipath}>minisite/hotel/img/ico_order_2.png"></i>
				<span class="li-txt">个人资料</span></a>
			</li>
		</ul>
		<ul class="home-list oh">
        	<li><a href="?a=map&hid=<{$hid}>">
				<i class="i-hotline"><img src="<{$ipath}>minisite/hotel/img/ico_order_3.png"></i>
				<span class="li-txt">酒店地图</span></a>
			</li>
			<li><a href="tel:<{$hinfo.tel}>">
				<i class="i-hotline"><img src="<{$ipath}>minisite/hotel/img/ico_order_3.png"></i>
				<span class="li-txt">酒店客服电话</span></a>
			</li>
		</ul>
		<div class="btn-quit">退出</div>
	</div>
</div>

<div class="mask"></div>
<div class="layer-quit pf">
	<ul class="list-quit">
		<li class="item1">退出后不会删除任何数据，下次登录依然可以使用本账号</li>
		<li class="item2"><a href="?a=logout&hid=<{$hid}>">退出登录</a></li>
	</ul>
	<div class="cancel">取消</div>
</div>

<script src="<{$ipath}>public/js/jquery.js"></script>
<script type="text/javascript">
<!--
	$('.btn-quit').click(function(){
		$('.mask').show();
		$('.layer-quit').slideDown();
	});
	$('.cancel').click(function(){
		$('.layer-quit').slideUp();
		$('.mask').hide();
	})
//-->
</script>

<script>
window.onload = function() { 
var ua = navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i) == "micromessenger"){
	document.getElementById("wxscan").style.display="block";
	document.getElementById("header").style.display="none";
	//$(".top-sp").removeClass("top-sp");
}
}; 
</script>
</body>
</html>